package com.shermanzhou.springbootflowable.demo.flow;

import lombok.Builder;
import lombok.Data;

/**
 * @author zhouchaoqun02
 * @date 2020-07-07 10:33
 */
@Data
@Builder
public class ApprovalFlow {
    /**
     * 审批流类型
     */
    protected ApprovalFlowTypeEnum flowType;
    /**
     * 审批节点信息
     */
    protected ApprovalFlowNode approvalFlowNode;


    public enum ApprovalFlowTypeEnum {
        ROOT("主流程"),
        SUB("子流程");

        private String description;

        ApprovalFlowTypeEnum(String description) {
            this.description = description;
        }

        public String getDescription() {
            return description;
        }
    }
}
